﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OF.Component.DTO
{
    public class OwnerMessageDto
    {
        /// <summary>
        /// 消息接收者店铺ID
        /// </summary>
        public int ShopId{ get; set; }
        /// <summary>
        /// 消息发送者店铺ID
        /// </summary>
        public int TriggerShopId { get; set; }
        /// <summary>
        /// 消息发送者联系电话
        /// </summary>
        public string TriggerShopMobile { get; set; }
        /// <summary>
        /// 评论人头像地址
        /// </summary>
        public string HeadImgSrc { get; set; }
        /// <summary>
        /// 评论人用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        public string ShopName { get; set; }
        /// <summary>
        /// 评论时间
        /// </summary>
        public DateTime CreatedDate { get; set; }
        /// <summary>
        /// 评论内容
        /// </summary>
        public string CommentContent { get; set; }
        /// <summary>
        /// 动态内容
        /// </summary>
        public string PostContent { get; set; }
        /// <summary>
        /// 动态类型
        /// </summary>
        public int PostType { get; set; }
        /// <summary>
        /// 动态ID
        /// </summary>
        public int PostID { get; set; }
        /// <summary>
        /// 消息类型1：评论，2：点赞，3：从动态打电话，4：从查看店铺打电话
        /// </summary>
        public int MessageType { get; set; }

        /// <summary>
        /// 评论时间
        /// </summary>
        public string CommentDate {
            get {
                return CreatedDate.ToString("yyyy-MM-dd");
            }
        }

    }
}
